package com.fauks.se.design_mode.代理模式.static_proxy;

/**
 * 代理类
 */
public class SomeServiceProxy implements ISomeService {

    private ISomeService someService;

    public SomeServiceProxy(ISomeService someService) {
        this.someService = someService;
    }

    @Override
    public String doFirst() {
        String s = someService.doFirst();
        return s.toUpperCase();
    }

    @Override
    public void doLast() {
        someService.doLast();
    }
}
